Optimal. Leaf size=116 \[ \frac {x^{2/3}}{a (a+b x)}-\frac {\tan ^{-1}\left (\frac {\sqrt [3]{a}-2 \sqrt [3]{b} \sqrt [3]{x}}{\sqrt {3} \sqrt [3]{a}}\right )}{\sqrt {3} a^{4/3} b^{2/3}}-\frac {\log \left (\sqrt [3]{a}+\sqrt [3]{b} \sqrt [3]{x}\right )}{2 a^{4/3} b^{2/3}}+\frac {\log (a+b x)}{6 a^{4/3} b^{2/3}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 116, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.385, Rules used = {44, 58, 631,
210, 31} \begin {gather*} -\frac {\text {ArcTan}\left (\frac {\sqrt [3]{a}-2 \sqrt [3]{b} \sqrt [3]{x}}{\sqrt {3} \sqrt [3]{a}}\right )}{\sqrt {3} a^{4/3} b^{2/3}}-\frac {\log \left (\sqrt [3]{a}+\sqrt [3]{b} \sqrt [3]{x}\right )}{2 a^{4/3} b^{2/3}}+\frac {\log (a+b x)}{6 a^{4/3} b^{2/3}}+\frac {x^{2/3}}{a (a+b x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 44
Rule 58
Rule 210
Rule 631
Rubi steps
\begin {align*} \int \frac {1}{\sqrt [3]{x} (a+b x)^2} \, dx &=\frac {x^{2/3}}{a (a+b x)}+\frac {\int \frac {1}{\sqrt [3]{x} (a+b x)} \, dx}{3 a}\\ &=\frac {x^{2/3}}{a (a+b x)}+\frac {\log (a+b x)}{6 a^{4/3} b^{2/3}}+\frac {\text {Subst}\left (\int \frac {1}{\frac {a^{2/3}}{b^{2/3}}-\frac {\sqrt [3]{a} x}{\sqrt [3]{b}}+x^2} \, dx,x,\sqrt [3]{x}\right )}{2 a b}-\frac {\text {Subst}\left (\int \frac {1}{\frac {\sqrt [3]{a}}{\sqrt [3]{b}}+x} \, dx,x,\sqrt [3]{x}\right )}{2 a^{4/3} b^{2/3}}\\ &=\frac {x^{2/3}}{a (a+b x)}-\frac {\log \left (\sqrt [3]{a}+\sqrt [3]{b} \sqrt [3]{x}\right )}{2 a^{4/3} b^{2/3}}+\frac {\log (a+b x)}{6 a^{4/3} b^{2/3}}+\frac {\text {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,1-\frac {2 \sqrt [3]{b} \sqrt [3]{x}}{\sqrt [3]{a}}\right )}{a^{4/3} b^{2/3}}\\ &=\frac {x^{2/3}}{a (a+b x)}-\frac {\tan ^{-1}\left (\frac {1-\frac {2 \sqrt [3]{b} \sqrt [3]{x}}{\sqrt [3]{a}}}{\sqrt {3}}\right )}{\sqrt {3} a^{4/3} b^{2/3}}-\frac {\log \left (\sqrt [3]{a}+\sqrt [3]{b} \sqrt [3]{x}\right )}{2 a^{4/3} b^{2/3}}+\frac {\log (a+b x)}{6 a^{4/3} b^{2/3}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.16, size = 133, normalized size = 1.15 \begin {gather*} \frac {\frac {6 \sqrt [3]{a} x^{2/3}}{a+b x}-\frac {2 \sqrt {3} \tan ^{-1}\left (\frac {1-\frac {2 \sqrt [3]{b} \sqrt [3]{x}}{\sqrt [3]{a}}}{\sqrt {3}}\right )}{b^{2/3}}-\frac {2 \log \left (\sqrt [3]{a}+\sqrt [3]{b} \sqrt [3]{x}\right )}{b^{2/3}}+\frac {\log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} \sqrt [3]{x}+b^{2/3} x^{2/3}\right )}{b^{2/3}}}{6 a^{4/3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.10, size = 116, normalized size = 1.00
method | result | size |
derivativedivides | \(\frac {x^{\frac {2}{3}}}{a \left (b x +a \right )}+\frac {-\frac {\ln \left (x^{\frac {1}{3}}+\left (\frac {a}{b}\right )^{\frac {1}{3}}\right )}{3 b \left (\frac {a}{b}\right )^{\frac {1}{3}}}+\frac {\ln \left (x^{\frac {2}{3}}-\left (\frac {a}{b}\right )^{\frac {1}{3}} x^{\frac {1}{3}}+\left (\frac {a}{b}\right )^{\frac {2}{3}}\right )}{6 b \left (\frac {a}{b}\right )^{\frac {1}{3}}}+\frac {\sqrt {3}\, \arctan \left (\frac {\sqrt {3}\, \left (\frac {2 x^{\frac {1}{3}}}{\left (\frac {a}{b}\right )^{\frac {1}{3}}}-1\right )}{3}\right )}{3 b \left (\frac {a}{b}\right )^{\frac {1}{3}}}}{a}\) | \(116\) |
default | \(\frac {x^{\frac {2}{3}}}{a \left (b x +a \right )}+\frac {-\frac {\ln \left (x^{\frac {1}{3}}+\left (\frac {a}{b}\right )^{\frac {1}{3}}\right )}{3 b \left (\frac {a}{b}\right )^{\frac {1}{3}}}+\frac {\ln \left (x^{\frac {2}{3}}-\left (\frac {a}{b}\right )^{\frac {1}{3}} x^{\frac {1}{3}}+\left (\frac {a}{b}\right )^{\frac {2}{3}}\right )}{6 b \left (\frac {a}{b}\right )^{\frac {1}{3}}}+\frac {\sqrt {3}\, \arctan \left (\frac {\sqrt {3}\, \left (\frac {2 x^{\frac {1}{3}}}{\left (\frac {a}{b}\right )^{\frac {1}{3}}}-1\right )}{3}\right )}{3 b \left (\frac {a}{b}\right )^{\frac {1}{3}}}}{a}\) | \(116\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.50, size = 127, normalized size = 1.09 \begin {gather*} \frac {x^{\frac {2}{3}}}{a b x + a^{2}} + \frac {\sqrt {3} \arctan \left (\frac {\sqrt {3} {\left (2 \, x^{\frac {1}{3}} - \left (\frac {a}{b}\right )^{\frac {1}{3}}\right )}}{3 \, \left (\frac {a}{b}\right )^{\frac {1}{3}}}\right )}{3 \, a b \left (\frac {a}{b}\right )^{\frac {1}{3}}} + \frac {\log \left (x^{\frac {2}{3}} - x^{\frac {1}{3}} \left (\frac {a}{b}\right )^{\frac {1}{3}} + \left (\frac {a}{b}\right )^{\frac {2}{3}}\right )}{6 \, a b \left (\frac {a}{b}\right )^{\frac {1}{3}}} - \frac {\log \left (x^{\frac {1}{3}} + \left (\frac {a}{b}\right )^{\frac {1}{3}}\right )}{3 \, a b \left (\frac {a}{b}\right )^{\frac {1}{3}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 176 vs.
\(2 (83) = 166\).
time = 0.71, size = 396, normalized size = 3.41 \begin {gather*} \left [\frac {6 \, a b^{2} x^{\frac {2}{3}} + 3 \, \sqrt {\frac {1}{3}} {\left (a b^{2} x + a^{2} b\right )} \sqrt {\frac {\left (-a b^{2}\right )^{\frac {1}{3}}}{a}} \log \left (\frac {2 \, b^{2} x - a b + 3 \, \sqrt {\frac {1}{3}} {\left (a b x^{\frac {1}{3}} + \left (-a b^{2}\right )^{\frac {1}{3}} a + 2 \, \left (-a b^{2}\right )^{\frac {2}{3}} x^{\frac {2}{3}}\right )} \sqrt {\frac {\left (-a b^{2}\right )^{\frac {1}{3}}}{a}} - 3 \, \left (-a b^{2}\right )^{\frac {2}{3}} x^{\frac {1}{3}}}{b x + a}\right ) + \left (-a b^{2}\right )^{\frac {2}{3}} {\left (b x + a\right )} \log \left (b^{2} x^{\frac {2}{3}} + \left (-a b^{2}\right )^{\frac {1}{3}} b x^{\frac {1}{3}} + \left (-a b^{2}\right )^{\frac {2}{3}}\right ) - 2 \, \left (-a b^{2}\right )^{\frac {2}{3}} {\left (b x + a\right )} \log \left (b x^{\frac {1}{3}} - \left (-a b^{2}\right )^{\frac {1}{3}}\right )}{6 \, {\left (a^{2} b^{3} x + a^{3} b^{2}\right )}}, \frac {6 \, a b^{2} x^{\frac {2}{3}} + 6 \, \sqrt {\frac {1}{3}} {\left (a b^{2} x + a^{2} b\right )} \sqrt {-\frac {\left (-a b^{2}\right )^{\frac {1}{3}}}{a}} \arctan \left (\frac {\sqrt {\frac {1}{3}} {\left (2 \, b x^{\frac {1}{3}} + \left (-a b^{2}\right )^{\frac {1}{3}}\right )} \sqrt {-\frac {\left (-a b^{2}\right )^{\frac {1}{3}}}{a}}}{b}\right ) + \left (-a b^{2}\right )^{\frac {2}{3}} {\left (b x + a\right )} \log \left (b^{2} x^{\frac {2}{3}} + \left (-a b^{2}\right )^{\frac {1}{3}} b x^{\frac {1}{3}} + \left (-a b^{2}\right )^{\frac {2}{3}}\right ) - 2 \, \left (-a b^{2}\right )^{\frac {2}{3}} {\left (b x + a\right )} \log \left (b x^{\frac {1}{3}} - \left (-a b^{2}\right )^{\frac {1}{3}}\right )}{6 \, {\left (a^{2} b^{3} x + a^{3} b^{2}\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 544 vs.
\(2 (107) = 214\).
time = 27.07, size = 544, normalized size = 4.69 \begin {gather*} \begin {cases} \frac {\tilde {\infty }}{x^{\frac {4}{3}}} & \text {for}\: a = 0 \wedge b = 0 \\- \frac {3}{4 b^{2} x^{\frac {4}{3}}} & \text {for}\: a = 0 \\\frac {3 x^{\frac {2}{3}}}{2 a^{2}} & \text {for}\: b = 0 \\\frac {2 a \log {\left (\sqrt [3]{x} - \sqrt [3]{- \frac {a}{b}} \right )}}{6 a^{2} b \sqrt [3]{- \frac {a}{b}} + 6 a b^{2} x \sqrt [3]{- \frac {a}{b}}} - \frac {a \log {\left (4 x^{\frac {2}{3}} + 4 \sqrt [3]{x} \sqrt [3]{- \frac {a}{b}} + 4 \left (- \frac {a}{b}\right )^{\frac {2}{3}} \right )}}{6 a^{2} b \sqrt [3]{- \frac {a}{b}} + 6 a b^{2} x \sqrt [3]{- \frac {a}{b}}} + \frac {2 \sqrt {3} a \operatorname {atan}{\left (\frac {2 \sqrt {3} \sqrt [3]{x}}{3 \sqrt [3]{- \frac {a}{b}}} + \frac {\sqrt {3}}{3} \right )}}{6 a^{2} b \sqrt [3]{- \frac {a}{b}} + 6 a b^{2} x \sqrt [3]{- \frac {a}{b}}} + \frac {2 a \log {\left (2 \right )}}{6 a^{2} b \sqrt [3]{- \frac {a}{b}} + 6 a b^{2} x \sqrt [3]{- \frac {a}{b}}} + \frac {6 b x^{\frac {2}{3}} \sqrt [3]{- \frac {a}{b}}}{6 a^{2} b \sqrt [3]{- \frac {a}{b}} + 6 a b^{2} x \sqrt [3]{- \frac {a}{b}}} + \frac {2 b x \log {\left (\sqrt [3]{x} - \sqrt [3]{- \frac {a}{b}} \right )}}{6 a^{2} b \sqrt [3]{- \frac {a}{b}} + 6 a b^{2} x \sqrt [3]{- \frac {a}{b}}} - \frac {b x \log {\left (4 x^{\frac {2}{3}} + 4 \sqrt [3]{x} \sqrt [3]{- \frac {a}{b}} + 4 \left (- \frac {a}{b}\right )^{\frac {2}{3}} \right )}}{6 a^{2} b \sqrt [3]{- \frac {a}{b}} + 6 a b^{2} x \sqrt [3]{- \frac {a}{b}}} + \frac {2 \sqrt {3} b x \operatorname {atan}{\left (\frac {2 \sqrt {3} \sqrt [3]{x}}{3 \sqrt [3]{- \frac {a}{b}}} + \frac {\sqrt {3}}{3} \right )}}{6 a^{2} b \sqrt [3]{- \frac {a}{b}} + 6 a b^{2} x \sqrt [3]{- \frac {a}{b}}} + \frac {2 b x \log {\left (2 \right )}}{6 a^{2} b \sqrt [3]{- \frac {a}{b}} + 6 a b^{2} x \sqrt [3]{- \frac {a}{b}}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.26, size = 132, normalized size = 1.14 \begin {gather*} -\frac {\left (-\frac {a}{b}\right )^{\frac {2}{3}} \log \left ({\left | x^{\frac {1}{3}} - \left (-\frac {a}{b}\right )^{\frac {1}{3}} \right |}\right )}{3 \, a^{2}} + \frac {x^{\frac {2}{3}}}{{\left (b x + a\right )} a} - \frac {\sqrt {3} \left (-a b^{2}\right )^{\frac {2}{3}} \arctan \left (\frac {\sqrt {3} {\left (2 \, x^{\frac {1}{3}} + \left (-\frac {a}{b}\right )^{\frac {1}{3}}\right )}}{3 \, \left (-\frac {a}{b}\right )^{\frac {1}{3}}}\right )}{3 \, a^{2} b^{2}} + \frac {\left (-a b^{2}\right )^{\frac {2}{3}} \log \left (x^{\frac {2}{3}} + x^{\frac {1}{3}} \left (-\frac {a}{b}\right )^{\frac {1}{3}} + \left (-\frac {a}{b}\right )^{\frac {2}{3}}\right )}{6 \, a^{2} b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.36, size = 144, normalized size = 1.24 \begin {gather*} \frac {x^{2/3}}{a\,\left (a+b\,x\right )}+\frac {{\left (-1\right )}^{1/3}\,\ln \left (\frac {{\left (-1\right )}^{2/3}\,b^{2/3}}{a^{5/3}}+\frac {b\,x^{1/3}}{a^2}\right )}{3\,a^{4/3}\,b^{2/3}}-\frac {{\left (-1\right )}^{1/3}\,\ln \left (\frac {b\,x^{1/3}}{a^2}+\frac {{\left (-1\right )}^{2/3}\,b^{2/3}\,{\left (\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )}^2}{a^{5/3}}\right )\,\left (\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )}{3\,a^{4/3}\,b^{2/3}}+\frac {{\left (-1\right )}^{1/3}\,\ln \left (\frac {b\,x^{1/3}}{a^2}+\frac {9\,{\left (-1\right )}^{2/3}\,b^{2/3}\,{\left (-\frac {1}{6}+\frac {\sqrt {3}\,1{}\mathrm {i}}{6}\right )}^2}{a^{5/3}}\right )\,\left (-\frac {1}{6}+\frac {\sqrt {3}\,1{}\mathrm {i}}{6}\right )}{a^{4/3}\,b^{2/3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________